mod media;
use media::Playable;

struct Audio(String);
struct Video(String);

impl Playable for Audio {
    fn play(&self) {
        println!("Now playing: {}", self.0);
    }
}
impl Playable for Video {
    fn play(&self) {
        println!("Now playing: {}", self.0);
    }
}
fn main() {
    println!("Hello, Player!");
    let audio = Audio("ambient_music.mp3".to_string());
    let video = Video("japance_happy.avi".to_string());
    video.play();
    audio.play();
}
